import { history } from '@umijs/max';
import { Button, Result, Space } from 'antd';
import React from 'react';

const NoFoundPage: React.FC = () => (
  <Result
    status="404"
    title="页面未找到"
    subTitle="暂未定义该页面或功能"
    extra={
      <Space>
        <Button type="primary" onClick={() => history.push('/')}>
          返回首页
        </Button>
        <Button type="primary" onClick={() => history.back()}>
          返回
        </Button>
      </Space>
    }
  />
);

export default NoFoundPage;
